﻿using System.Collections.ObjectModel;
using System.Windows;
using System.Windows.Controls;
using SnakeGame.ViewModels;
using SnakeGame.Models;

namespace SnakeGame.Models
{
    public class Player : NotifyPropertyChanged
    {
        public int Index { get; set; }

        private int _position;
        public int Position
        {
            get { return _position; }
            set
            {
                _position = value;
                OnPropertyChanged("Position");
            }
        }
        public string PlayerName { get; set; }
        public string CharacterPicture { get; set; }
        public Image Avatar { get; set; }

        private int _win;
        public int Win
        {
            get { return _win; }
            set
            {
                _win = value;
                OnPropertyChanged("Win");
            }
        }
        
        private int _lose;
        public int Lose
        {
            get { return _lose; }
            set
            {
                _lose = value;
                OnPropertyChanged("Lose");
            }
        }
    }
}
